package com.ticket.sass.common.entity.tenant;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ywb
 * @since 2022-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("areas")
public class AreaEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    private String name;

    private String code;

    private String parentCode;

    private String mergerName;

    private String mergerCode;

    private Integer level;

    @TableField("is_update")
    private Boolean update;

    private String htmlPath;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @TableLogic(value = "null", delval = "now()")
    @TableField(select = false)
    private LocalDateTime deletedAt;
}
